Ext.define('MyApp.view.authority.AuthorityGirdView', {
			extend : 'MyApp.view.ux.BaseWindow',
			alias : 'widget.authorityview',
			layout : 'fit',
			width: 700,
			height: 300,
			initComponent : function() {
				Ext.apply(this, {
					items:[{
						xtype:'grid',
						forceFit:true ,//自动填满表格 
					    autoScroll : true,
					    autoHeight: true,
					    selType: 'checkboxmodel',
						columns:[
							{text:'权限名称',dataIndex:'authorityName', align:'center'},
							{text:'权限描述',dataIndex:'authorityDescription',align:'center'}
						]
					}],
					buttons : [{
						text : '增加权限',
						itemId : 'addAuthority',
						glyph : 0xf002
					}, {
						text : '修改权限',
						itemId : 'editAuthority',
						disabled:true,
						glyph : 0xf14b
					},{
						text : '删除选中',
						itemId : 'deleteAuthority',
						disabled:true,
						glyph : 0xf1f8
					}, {
						text : '关闭',
						itemId : 'cancel',
						glyph : 0xf00d,
						handler:function(btn){
							btn.up('window').close();
						}
					}]
				});
				this.callParent(arguments);
			}
});